pub struct Solution;

impl Solution {
    pub fn maximum_odd_binary_number(s: String) -> String {
        let len = s.len();
        let count = s.chars().filter(|&v| '1' == v).count();

        format!("{}{}1", "1".repeat(count - 1), "0".repeat(len - count))
    }
}